package MessagePacks;

import common.MyFile;

/**
 *@author Juan Alapin - 324507516
 *@author Giora Yaffe - 036551281
 *@author Shachar Gritzman - 300174026
 *@author Nir Porat - 021515580
*/

public class getReqestFile extends MessagePack{

	private static final long serialVersionUID = 1L;
	private int reqID;
	private MyFile reqFile;
	private String fileName;
	private String End;
	private int fileFlag;
		
	/**
	 * Constructor of getReqestFile (Without File)
	 * @param requestID - The request's ID
	 */
	public getReqestFile(int requestID) {
		super(MessagePack.getReqFile);
		reqID = requestID;
		reqFile = null;
		fileName = null;
		End = null;
		fileFlag=0;
	}
	
	public int getReqID(){
		return(reqID);
	}
	
	public int getFileFlag(){
		return(fileFlag);
	}
	
	public void setFileFlag(int flag){
		fileFlag=flag;;
	}
	
	public MyFile getFile(){
		return(reqFile);
	}
	
	public void setFile(MyFile file){
		reqFile=file;
	}
	
	public void setFileName(String filename){
		fileName=new String(filename);
	}
	
	public String getFileName(){
		return(fileName);
	}
	
	public void setFileEnd(String fileend){
		End=new String(fileend);
	}
	
	public String getFileEnd(){
		return(End);
	}
	
}
